<template>
    <div>
        <p>侧边栏</p>
        <button @click="change">修改头部</button>
    </div>
</template>

<script>
export default {


    methods: {
        change() {
            this.$store.commit('set_title',22222222222);
        }
    }
}
</script>


<style scoped>
div {
    position: fixed;
    left: 0;
    top: 50px;
    height: 500px;
    width: 150px;
    background: gray;
}
</style>